<div class="page-header">
  <h1>Регистрация пользователя</h1>
</div>

<?php echo CHtml::form(Yii::app()->urlManager->baseUrl.'/registration/client/', 'post'); ?>
<?php echo CHtml::errorSummary($user); ?>
<?php echo CHtml::errorSummary($client); ?>
<table>
     <tr>
        <td><?php echo CHtml::activeLabel($user, 'Email',array("label" => "Email:")); ?></td>
        <td><?php echo CHtml::activeTextField($user, 'email', array('placeholder' => 'Email address', 'class'=>"form-control")) ?></td>
     </tr>
     <tr>
        <td><?php echo CHtml::activeLabel($user, 'phone',array("label" => "Телефон:")); ?></td>
        <td><?php echo CHtml::activeTextField($user, 'phone', array('placeholder' => 'last name', 'class'=>"form-control")) ?></td>
     </tr>
    <tr>
        <td><?php echo CHtml::activeLabel($user, 'pass', array("label" => "Пароль:")); ?></td>
        <td><?php echo CHtml::activePasswordField($user, 'pass', array('placeholder' => 'pass', 'class'=>"form-control")) ?></td>
     </tr>     
     <tr>
        <td><?php echo CHtml::activeLabel($user, 'pass_repeat', array("label" => "Повторите пароль:")); ?></td>
        <td><?php echo CHtml::activePasswordField($user, 'pass_repeat', array('placeholder' => 'pass repeat', 'class'=>"form-control")) ?></td>
     </tr>
     <tr>
        <td><?php echo CHtml::activeLabel($client, 'name',array("label" => "Имя:")); ?></td>
        <td><?php echo CHtml::activeTextField($client, 'name', array('placeholder' => 'first name', 'class'=>"form-control")) ?></td>
     </tr>
    <tr>
        <td><?php $this->widget('CCaptcha', array('buttonLabel' => '<br>[новый код]')); ?></td>
        <td><?php echo CHtml::activeTextField($user, 'verifyCode', array('placeholder' => 'verify Code', 'class'=>"form-control")); ?></td>
    </tr>
    <tr>
        <td></td>
        <td><?php echo CHtml::submitButton('Регистрация', array('id' => "submit", 'class'=>'btn btn-large btn-primary')); ?></td>
    </tr>
</table>
<?php echo CHtml::endForm(); ?>